﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace Knights.Recursos
{
    abstract class Texturas
    {
        public static Texture2D Textura1;
        public static Texture2D Textura2;
        public static Texture2D Pasto;
        public static Texture2D Mapa;

        public static void CargarContenido(ContentManager content)
        {
            Textura1 = CargarTextura(content, "textura1");
            Textura2 = CargarTextura(content, "textura2");
            Pasto = CargarTextura(content, "pasto");
            Mapa = CargarTextura(content, "mapa");
        }

        private static Texture2D CargarTextura(ContentManager content, String ruta)
        {
            return content.Load<Texture2D>("Texturas\\" + ruta);
        }
    }
}
